package user

import "gitee.com/MrDaiM/mall/internal/app/usecases"

type User struct {
	userCase *usecases.UserUseCase
	bagCase  *usecases.BagUseCase
}

func NewUserHandler() *User {
	handler := User{
		userCase: usecases.NewUserUseCase(),
		bagCase:  usecases.NewBagUseCase(),
	}
	return &handler
}

func (u *User) CreateUser() {
	u.userCase.IUser.CreateUserXX()
	u.bagCase.IBag.AddItem("")
}
